@import "../ea-ui-base-style.scss";
@import "../ea-icon/index.scss";

.ea-badge_wrap {
  position: relative;
  vertical-align: middle;
  display: inline-block;

  .ea-badge_content {
    display: inline-block;

    padding: 0 0.375rem;
    border-radius: 0.625rem;
    border: 1px solid #fff;

    height: 1.125rem;
    line-height: 1.125rem;

    position: absolute;
    right: 0.625rem;
    top: 0;
    transform: translate(100%, -50%);

    color: #fff;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    background-color: #f56c6c;

    &.primary {
      background-color: $color-primary-bgc;
    }

    &.success {
      background-color: $color-success-bgc;
    }

    &.warning {
      background-color: $color-warning-bgc;
    }

    &.info {
      background-color: $color-info-bgc;
    }

    &.dot {
      right: 0.3125rem;

      padding: 0;
      border-radius: 50%;

      width: 0.5rem;
      height: 0.5rem;
    }
  }
}
